package com.shxzz.easy12306.services.user.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shxzz.easy12306.framework.starter.database.base.BaseDO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户名复用表
 * @TableName t_user_reuse
 */
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="t_user_reuse")
@Data
public class UserReuseDO extends BaseDO implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 复用用户名
     */
    private String username;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public UserReuseDO(String username) {
        this.username = username;
    }
}